Documentation navigation cards pop when hovered - #46
Open
JackTench wants to merge 1 commit into
Open
Conversation
StarlitLuna
requested changes
Sep 9, 2026
StarlitLuna
left a comment
Member
There was a problem hiding this comment.
Really small thing on the visual
| {(doc) => ( | ||
| <a href={doc.to}> | ||
| <Card class="h-full transition hover:border-primary hover:shadow-lg"> | ||
| <Card class="h-full transition-[transform,border-color,box-shadow] duration-300 ease-out hover:-translate-y-1 hover:scale-[1.01] hover:border-primary/40 hover:shadow-lg"> |
Member
There was a problem hiding this comment.
The pop effect is a bit sharp, i.e. it pops almost instantly and looks a bit off. These are the classes I used in the install page's distro cards:
transition-[border-color,box-shadow,translate,background-color] duration-200 hover:-translate-y-1 hover:border-primary/40 hover:bg-accent/30 hover:shadow-lg
Main thing is using translate in the transition instead of transform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.